package com.qf.day08.bird;

public class Demo {
    public static void method1(Fireable fireable){
        fireable.toFire();

    }
    public static void method2(Swim swim){
        swim.swim();

    }
    public static void main(String[] args) {
        Bird bird = new Bird();
       method1(bird);
        method2(bird);
    }
}
